package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.BuildingManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p >
 *
 * @author ablbb
 * @since 2024-07-19
 */
public interface BuildingManagementMapper extends BaseMapper<BuildingManagement> {

    Integer calculateTotalRoomsForBuilding(@Param("buildingId") String buildingId);
    void updateTotalRoomsForBuilding(@Param("buildingId") String buildingId, @Param("totalRoom") Integer totalRoom);

    Integer countRoom(String buildingId);

    Integer countBed(String buildingId);
}
